From: Jasper St. Pierre Date: Mon, 25 Feb 2013 22:06:07 +0000 (-0500) Subject: workspacesView: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4316 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2506673514af336b52811636f7acee501f3ff94a;p=gnome-shell.git workspacesView: Minor cleanup https://bugzilla.gnome.org/show_bug.cgi?id=694469 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 1ea508f4c..887b07ad3 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -636,16 +636,11 @@ const WorkspacesDisplay = new Lang.Class({ if (!this._workspacesViews.length) return; - let fullWidth = this.actor.allocation.x2 - this.actor.allocation.x1; - let fullHeight = this.actor.allocation.y2 - this.actor.allocation.y1; - - let width = fullWidth; - let height = fullHeight; + let width = this.actor.allocation.x2 - this.actor.allocation.x1; + let height = this.actor.allocation.y2 - this.actor.allocation.y1; let [x, y] = this.actor.get_transformed_position(); - let rtl = (Clutter.get_default_text_direction () == Clutter.TextDirection.RTL); - let monitors = Main.layoutManager.monitors; let m = 0; for (let i = 0; i < monitors.length; i++) {